$(function(){
	var str = '<iframe src="/gaspider/webpage/task/task_main.jsp" name="taskmain" frameborder="0" width="100%" height="100%"></iframe>';
	$("#tt-tab").append(str);
});

function add(athis,title,url){
	$('#nav li div').removeClass("selected");
	$(athis).parent().addClass("selected");
	if($('#tt').tabs('exists',title)){
		$('#tt').tabs('select',title);
	}else{
		$('#tt').tabs('add',{
			title: title,
			selected: true,
			closable:true,  
			iconCls:'icon-add', 
			overflow:'hidden',
			content: '<div style="overflow:hidden;width:100%;height:100%;"><iframe src="'+url+'" name="taskmain" frameborder="0" width="100%" height="100%"><iframe></div>'
		});
	}
	
}
function mOver(obj)
{
	$(obj).addClass("hover");
}
function mOut(obj){
	$(obj).removeClass("hover");
}
